//
//  Order.h
//  SeaMelonSeeds_Counselor
//
//  Created by 尤振宇 on 2017/7/17.
//  Copyright © 2017年 杨笑. All rights reserved.
//

#import "WKObject.h"
#import "Deployable.h"

@interface Order : WKObject <Deployable>
@property(nonatomic,assign)int user_id;
@property(nonatomic,copy)NSString *user_avatar;
@property(nonatomic,copy)NSString *body;
@property(nonatomic,assign)int count;
@property(nonatomic,assign)float total_fee;
@property(nonatomic,assign)int surplus_count;
@property(nonatomic,copy)NSString *nickname;
@property(nonatomic,assign)int age;
@property(nonatomic,assign)BOOL sex;
@property(nonatomic,copy)NSString *problemDescription;
@property(nonatomic,copy)NSString *out_trade_no;
@property(nonatomic,assign)int allow_type;
@property(nonatomic,assign)BOOL is_pay;
@property(nonatomic,copy)NSString *serviced_at;
@property(nonatomic,assign)BOOL allow_send_check;
@property(nonatomic,assign)BOOL allow_check;//是否同意申请

@property(nonatomic,copy)NSString *accepted_at;
@property(nonatomic,copy)NSString *refused_at;
@property(nonatomic,assign,readonly)BOOL is_operationOrder;
@property(nonatomic,assign)NSTimeInterval timeout;
@property(nonatomic,assign)BOOL is_timeout;

@property(nonatomic,copy)NSString *user_hx;

@property(nonatomic,copy)NSString *user_timeouted_at; //用户超时时间
@property(nonatomic,copy)NSString *counselor_timeouted_at;//咨询师超时时间

@property(nonatomic,copy)NSString *created_at;//创建时间

@property(nonatomic,assign)int type;//只有在OneOrderViewController 才有用

@property(nonatomic,assign)BOOL spread;
@property(nonatomic,assign)float content_H;


-(float)cellHeight;
@end

@interface OrderService : Order
@property(nonatomic,copy)NSString *begined_at;
@property(nonatomic,copy)NSString *ended_at;
@property(nonatomic,assign)int status;

@property(nonatomic,assign)BOOL allow_send_gauge;//是否允许发送诊前量表
@property(nonatomic,assign)BOOL allow_create; //是否可以写诊断结果

@property(nonatomic,assign)int surplus_minites;//剩余通话时间 /分钟
@property(nonatomic,copy)NSString *result;//诊断结果


@end

@interface WKScale : WKObject
@property(nonatomic, assign) int gauge_test_log_id;//个人履历测试量表用id
@property(nonatomic, assign) int gauge_id;//诊前量表用id
@property(nonatomic,copy)NSString *title;
@property(nonatomic,assign)BOOL is_test;

@property(nonatomic,copy)NSString *image;
@property(nonatomic,copy)NSString *summary;


@end


